package com.glodon.paas.account.api.oauth1;

import javax.xml.bind.annotation.XmlRootElement;

/**
 * @author Don Li
 */
@XmlRootElement
public class AccessTokenInfo {
    private String userId;
    private String consumerId;
    private String[] serviceIds;
    private long expiresIn; // token expires in milliseconds

    public AccessTokenInfo() {
    }

    public AccessTokenInfo(String userId, String consumerId, String[] serviceIds, long expiresIn) {
        this.userId = userId;
        this.consumerId = consumerId;
        this.serviceIds = serviceIds;
        this.expiresIn = expiresIn;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getConsumerId() {
        return consumerId;
    }

    public void setConsumerId(String consumerId) {
        this.consumerId = consumerId;
    }

    public String[] getServiceIds() {
        return serviceIds;
    }

    public void setServiceIds(String[] serviceIds) {
        this.serviceIds = serviceIds;
    }

    public long getExpiresIn() {
        return expiresIn;
    }

    public void setExpiresIn(long expiresIn) {
        this.expiresIn = expiresIn;
    }
}
